/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.bo.TrainUserGroupBO;
import com.xy.biz.ts.domain.query.TrainUserGroupQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-4-1
 */
public interface TrainUserGroupManager {

	/**
	 * 保存
	 *
	 * @param trainUserGroupBO
	 */
	int saveTrainUserGroup(TrainUserGroupBO trainUserGroupBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllTrainUserGroup(Collection<TrainUserGroupBO> collection);

	/**
	 * 更新
	 *
	 * @param trainUserGroupBO
	 */
	int updateTrainUserGroup(TrainUserGroupBO trainUserGroupBO);

	/**
	 * 更新
	 *
	 * @param trainUserGroupBO
	 */
	int updateTrainUserGroupReleaseFlag(TrainUserGroupBO trainUserGroupBO);

	/**
	 * 删除
	 *
	 * @param trainUserGroupId
	 */
	int deleteTrainUserGroup(Long trainUserGroupId);

	/**
	 * 查找一个
	 *
	 * @param trainUserGroupId
	 * @return
	 */
	TrainUserGroupBO getTrainUserGroup(Long trainUserGroupId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<TrainUserGroupBO> listTrainUserGroupById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<TrainUserGroupBO> listTrainUserGroup(TrainUserGroupQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countTrainUserGroup(TrainUserGroupQuery query);

    void deleteTrainUserGroupByTrainId(Long trainId);
}
